Skip to content

refactor(agystack): remove swarm skill and Cloud Run runtime - #20

Closed
semantic-craft wants to merge 2 commits into
jtaroreh:mainfrom
semantic-craft:refactor/remove-agystack-swarm
Closed

semantic-craft wants to merge 2 commits into
jtaroreh:mainfrom
semantic-craft:refactor/remove-agystack-swarm

Conversation

@semantic-craft

Copy link
Copy Markdown
Contributor

Why

Google Antigravity now ships a built-in swarm plugin and skill (native_swarm, declared as name: swarm) backed by native platform tools (swarm, post_message, read_board, swarm_wait, shared message board, channels, narrator, monitor, and workspace isolation).

Because Antigravity discovers global plugins in ~/.gemini/config/plugins/ with higher precedence than built-in customizations, agystack's skills/swarm/SKILL.md (name: swarm) shadows Google's built-in /swarm skill. Removing agystack's swarm skill and Cloud Run swarm stack eliminates the shadowing collision and drops redundant orchestration code and mandatory GCP runtime dependencies.

Scope

  • Delete skills/swarm/ (SKILL.md, Dockerfile, requirements.txt, cloud_dispatch.py, cloud_worker.py, manifest_generator.py, result_harvester.py, simulate_cloud_swarm.py, steer_cloud_task.py, storage_messenger.py, storage_uploader.py, swarm_dashboard.py, transcript_projector.py, dispatch/, and worker/), agystack-runtime.json.example, and the 13 cloud swarm test modules (tests/test_architecture_remediation.py, test_cloud_preflight_and_worker.py, test_cloud_worker_vertex_partner.py, test_container_spec.py, test_conversational_steering_tool.py, test_live_cloud_bidirectional.py, test_shadow_transcript_projection.py, test_simulation_scenario.py, test_storage_messenger.py, test_storage_uploader.py, test_swarm_dashboard_generation.py, test_swarm_generic.py, and test_worker_execution_lifecycle.py).
  • Simplify skills/setup-agystack/scripts/setup_runtime.py to local --doctor checks (bun, gh, gt, check_hook_contract, check_artifact_dir, parse_model_config, check_skill_collisions, check_platform, run_doctor), reorder parse_model_config() to prefer workspace-local and owning plugin root ahead of global ~/.gemini, and add check_skill_collisions() so upgraded zip installs flag any leftover skills/swarm directory.
  • Remove google-cloud-storage, google-cloud-run, google-genai, and the orphaned agent (google-antigravity) extra from pyproject.toml, and regenerate uv.lock to lock only [project.optional-dependencies] test (10 packages).
  • Remove swarm workers from agystack-models.md, remove agystack-runtime.json.example from scripts/package-plugin.sh, keep **/*agystack-runtime.json in .gitignore to protect upgraded installs, and drop residual CLOUD_RUN_TASK_INDEX checks from skills/poteto-mode/scripts/hooks/pre_tool_delegation.py, pre_tool_safety.py, and tests/test_hooks.py.
  • Retarget rules/AGENTS.md, plugin.json, README.md, docs/marketplace-listing.md, docs/marketplace-submission.json, docs/guide/*, skills/agystack/SKILL.md, skills/setup-agystack/SKILL.md, skills/maintain-verification-skill/SKILL.md, skills/poteto-mode/SKILL.md, skills/poteto-mode/references/antigravity-tools.md, skills/poteto-mode/playbooks/{autopilot-full,autopilot-stack,multi-phase-plan}.md, and skills/poteto-mode/scripts/check-plan.mjs from skills/swarm/ to Antigravity's built-in swarm tool and local invoke_subagent fan-outs.
  • Update tests/test_reactive_coordination_rules.py, isolate $HOME in tests/test_setup_runtime.py, and add test_no_swarm_skill_collision() in tests/test_skill_catalog.py.

Tradeoffs

  • **/*agystack-runtime.json remains in .gitignore even though agystack-runtime.json.example is deleted. Existing git-clone or workspace-local installations that previously generated agystack-runtime.json will not accidentally stage stale GCP configuration after pulling this change.
  • Removing the Cloud Run fleet scripts drops N > 8 remote Cloud Run job orchestration from agystack. Users who need local parallel fan-out use Antigravity's built-in swarm skill and invoke_subagent directly with zero extra dependencies.

Blast Radius

  • Touches 64 files (+333 / -19,024 lines) across skills/swarm/, skills/setup-agystack/, skills/poteto-mode/, rules/AGENTS.md, packaging, docs, and tests.
  • Existing installations updated via git pull drop skills/swarm/ automatically and regain access to Antigravity's built-in /swarm skill on the next session. Existing installations updated by extracting a release zip over an old directory are alerted by setup_runtime.py --doctor (skill_collisions) to remove the stale skills/swarm directory.
  • All non-swarm skills (poteto-mode, interrogate, arena, architect, loop, deslop, unslop, no-comments, watch-pr, and all 24 principles), both custom agents (poteto-agent, comment-sicko), and all hook contracts remain intact.

Verification

  • Verified both commits in the stack (a89a7a5 and 67b8bc1) independently in an isolated git worktree on macOS with Python 3.13 and Bun 1.4.4.
  • uv lock --check passed (Resolved 10 packages).
  • ruff check . passed with zero warnings.
  • pytest -q --timeout=60 tests/ passed all 83 tests and 130 subtests (test_plugin_manifest.py, test_skill_catalog.py, test_agent_definitions.py, test_reactive_coordination_rules.py, test_setup_runtime.py, and test_hooks.py).
  • python3 -m unittest discover -s tests passed all 75 stdlib tests.
  • python3 skills/setup-agystack/scripts/setup_runtime.py --doctor exited 0 with "status": "OK", skill_collisions.collision: false, and model_config.path resolving to the worktree agystack-models.md (21 roles, no swarm workers).
  • bun test in skills/poteto-mode/scripts passed 47/47 tests across 4 files, and bun run typecheck (tsc --project watch-pr/tsconfig.json --noEmit --strict) exited 0.

Google Antigravity now ships a built-in swarm plugin and skill (name: swarm) with native board coordination tools. Removing agystack's skills/swarm/ eliminates the global-over-builtin shadowing collision along with the redundant Cloud Run swarm scripts, GCP provisioning code, and cloud-only test suite.

Keep local runtime doctor checks in setup_runtime.py, add a legacy skills/swarm collision check, prioritize workspace and plugin-root agystack-models.md ahead of global config, and drop orphaned GCP/Cloud Run hook and lockfile dependencies.
Replace references to the removed skills/swarm/ skill and Cloud Run swarm workflows across plugin metadata, skills, playbooks, and guides with Antigravity's built-in swarm tool and local invoke_subagent fan-outs.
@jtaroreh

Copy link
Copy Markdown
Owner

Thank you @semantic-craft for reporting this collision and opening the pull request.

The shadowing of Antigravity's built-in /swarm was real due to plugin discovery precedence.
We evaluated deleting versus renaming the skill.
agystack retains the Cloud Run fleet runtime because Antigravity does not provide headless remote fleets or GCS patch harvesting for large exploration sweeps.
Instead of deleting the runtime, we renamed agystack's skill to /cloud-swarm in #21.
This restores native /swarm for interactive message board collaboration while keeping Cloud Run batch capabilities intact.

We incorporated your collision check pattern into setup_runtime.py --doctor and adopted your $HOME test isolation structure in tests/test_setup_runtime.py.
Thank you for the contribution.

@jtaroreh

Copy link
Copy Markdown
Owner

Superseded by merged PR #21 (commit 9026a80). Closing with full attribution as detailed above.

@jtaroreh jtaroreh closed this Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants